package com.itheima.user.service;

import com.itheima.user.mapper.UserDao;
import com.itheima.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author ：xiaoZhou
 * @ClassName : UserServiceImpl
 * @date ：Created in 2021/12/14 22:25
 */
@Service
public class UserServiceImpl implements UserService{


    @Autowired
    private UserDao userDao;



    @Override
    public User findUserById(Long id) {
        return userDao.findUserById(id);
    }
}
